﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChessGame.Movement
{
    /// <summary>
    /// Movement object
    /// Contains a list of MovementOption's
    /// </summary>
    public class Movement
    {
        public List<MovementOption> movementOptions;

        /// <summary>
        /// Movement constructor
        /// </summary>
        public Movement()
        {
            movementOptions = new List<MovementOption>();
        }

        /// <summary>
        /// Add a MovementOption to the list
        /// </summary>
        /// <param name="x">Position X</param>
        /// <param name="y">Position Y</param>
        public void Add(int x, int y) {
            movementOptions.Add(new MovementOption(x, y));
        }
        /// <summary>
        /// Get list of MovementOption's 
        /// </summary>
        /// <returns>List of MovementOptions</returns>
        public List<MovementOption> GetOptions()
        {
            return movementOptions;
        }
    }
}
